#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a, b, c;
	char cal;
	int k = 1;
	while (scanf("%d %c %d = %d", &a, &cal, &b, &c) != EOF)
	{
		if (cal == '+' && a + b == c
			|| cal == '-' && a - b == c
			|| cal == '*' && a * b == c
			|| cal == '/' && a % b == 0 && a / b == c)
			printf("Case %d: Yes\n", k++);
		else
			printf("Case %d: No\n", k++);
	}
	return 0;
}